package com.cangxuan.app.entity;

import java.io.Serializable;

/**
 * 用户表
 */
public class User implements Serializable {


    private Integer id;
    private String mobile;
    private String nickname;
    private String face;
    private String blockchainAddress;
    private String regTime;
    private boolean hasSetTransPassword;    //是否设置过 交易密码
    private boolean hasSetRealname;         //是否做了 命名认证
    private boolean subscribeToTheSalesCalendar;    //是否订阅了日历
    private boolean displayMyGoods;     //是否显示我的藏品
    private boolean displayMySellGoods; //是否显示我出售的藏品

    public User() {
    }

    public User(String mobile, String nickname) {
        this.mobile = mobile;
        this.nickname = nickname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public String getBlockchainAddress() {
        return blockchainAddress;
    }

    public void setBlockchainAddress(String blockchainAddress) {
        this.blockchainAddress = blockchainAddress;
    }

    public boolean isSubscribeToTheSalesCalendar() {
        return subscribeToTheSalesCalendar;
    }

    public void setSubscribeToTheSalesCalendar(boolean subscribeToTheSalesCalendar) {
        this.subscribeToTheSalesCalendar = subscribeToTheSalesCalendar;
    }

    public boolean isDisplayMyGoods() {
        return displayMyGoods;
    }

    public void setDisplayMyGoods(boolean displayMyGoods) {
        this.displayMyGoods = displayMyGoods;
    }

    public boolean isDisplayMySellGoods() {
        return displayMySellGoods;
    }

    public void setDisplayMySellGoods(boolean displayMySellGoods) {
        this.displayMySellGoods = displayMySellGoods;
    }

    public boolean isHasSetTransPassword() {
        return hasSetTransPassword;
    }

    public void setHasSetTransPassword(boolean hasSetTransPassword) {
        this.hasSetTransPassword = hasSetTransPassword;
    }

    public boolean isHasSetRealname() {
        return hasSetRealname;
    }

    public void setHasSetRealname(boolean hasSetRealname) {
        this.hasSetRealname = hasSetRealname;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", mobile='" + mobile + '\'' +
                ", nickname='" + nickname + '\'' +
                ", face='" + face + '\'' +
                ", blockchainAddress='" + blockchainAddress + '\'' +
                ", regTime='" + regTime + '\'' +
                ", hasSetTransPassword=" + hasSetTransPassword +
                ", hasSetRealname=" + hasSetRealname +
                ", subscribeToTheSalesCalendar=" + subscribeToTheSalesCalendar +
                ", displayMyGoods=" + displayMyGoods +
                ", displayMySellGoods=" + displayMySellGoods +
                '}';
    }
}
